﻿--[[
   @brief    desc for new ui banner 
   @author   hqzheng
   @version  1.0
   @date     2016-1-19
--]]

ierd_tgp.tpf_ui.Require("event_ids.lua");

banner_desc =
{
    module_name = "common",
    events = 
    {
        {
            c_event = 
            {
                {
                },
            },
            lua_event = 
            {
                 {
                     id = layout_event.REMOVING_LAYOUT,
                     callback =  "ui_utility.on_removing_layout"
                 },
            },
            reg_service = {
                {
                    id = 'i_service_open_game_detail_page',
                    callback = "web_utility.open_game_detail_page"
                },
                {
                    id = 'i_service_open_web_page_by_url',
                    callback = "web_utility.open_web_page_by_url"
                },
                {
                    id = 'i_service_open_link',
                    callback = "web_utility.open_link_convert"
                },
                {
                    id = 'i_service_open_link_confirm_launch',
                    callback = "web_utility.open_link_convert_confirm_launch"
                },
                {
                    id = 'i_service_webutl_get_tgp_version_str',
                    callback = 'base_utility.service_get_tgp_version_str'
                },
                {
                    id = 'Svr_CallService',
                    callback = 'base_utility.on_call_service'
                },
                {
                    id = 'i_service_show_wnd',
                    callback = 'ui_utility.on_service_show_wnd'
                },
                {
                    id = 'i_service_close_wnd',
                    callback = 'ui_utility.on_service_close_wnd'
                }
            },
            listen_broadcast = 
            {
                {
                    id = 'i_broadcast_open_link',
                    callback = "web_utility.open_link_convert"
                },
                {
                    id = "Msg_WebFrameLoadComplete",
                    callback = "web_utility.handle_open_link_convert"
                },
                {
                    id = "Msg_SendBroadcast",
                    callback = "base_utility.on_send_broadcast"
                },
            },
            lua_file = "common\\ui_utility.lua"
        },
        
    }
};

desc_mgr.add(banner_desc);

